package com.jumper.property.comparer.demo.entity;

import com.jumper.property.comparer.core.annotations.DiffKey;
import com.jumper.property.comparer.core.annotations.UnionDisplayKey;
import com.jumper.property.comparer.core.annotations.UnionKey;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 商品明细
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class GoodsItem {

    @UnionKey
    @UnionDisplayKey
    @DiffKey(name = "商品编码")
    private String code;

    @UnionDisplayKey
    @DiffKey(name = "商品名称")
    private String name;

    @DiffKey(name = "购买数量")
    private BigDecimal count;

    @DiffKey(name = "购买金额（元）")
    private BigDecimal amount;

}
